package model;

import java.util.ArrayList;
import java.util.List;

public class ProductModel {
    private Integer id;
    private String nameTitle;
    private String nameHref;
    public String[] dishes = {"【鄂菜】", "【闽菜】", "【鲁菜】", "【湘菜】", "【粤菜】", "【川菜】"};
    public String[] dishesHref = {"#", "#", "#", "#", "/show", "/product"};
    private String img = "../img/34_fslw.jpg";
    private String productName = "陈皮排骨";
    private String markerPrice = "26";
    private String price = "22";
    private String part = "猪排骨(大排)";
    private String assist = "陈皮";
    private String seasoning = "襄荷3克,小葱25克,冰糖15克辣椒(红、尖、干)5克,花椒2克,辣椒油45克料酒30克,盐3克味精2克";

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
//
//    private List<ProductModel> nameList;
//
//    public List<ProductModel> getNameList() {
//        List<ProductModel> nameList= new ArrayList<>();
//        for (int i=0;i<this.dishes.length;i++){
//            ProductModel productModel= new ProductModel();//封装数据
//            productModel.setNameHref(this.dishesHref[i]);
//            productModel.setNameTitle(this.dishes[i]);
//            nameList.add(productModel);
//        }
//        return nameList;
//    }


    public String getNameTitle() {
        return nameTitle;
    }

    public void setNameTitle(String nameTitle) {
        this.nameTitle = nameTitle;
    }

    public String getNameHref() {
        return nameHref;
    }

    public void setNameHref(String nameHref) {
        this.nameHref = nameHref;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getMarkerPrice() {
        return markerPrice;
    }

    public void setMarkerPrice(String markerPrice) {
        this.markerPrice = markerPrice;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getPart() {
        return part;
    }

    public void setPart(String part) {
        this.part = part;
    }

    public String getAssist() {
        return assist;
    }

    public void setAssist(String assist) {
        this.assist = assist;
    }

    public String getSeasoning() {
        return seasoning;
    }

    public void setSeasoning(String seasoning) {
        this.seasoning = seasoning;
    }
}
